计算机与现代化 ›› 2012, Vol. 1 ›› Issue (200): 45-03.doi: 10.3969/j.issn.1006-2475.2012.04.012

• 计算机控制 • 上一篇    下一篇

C语言环境下基于单片机的直流电机调速系统的设计与实现

赵远东1,2,方 源2,梁路阳2   

  1. 1.南京信息工程大学江苏省气象传感网技术工程中心,江苏 南京 210044;2.南京信息工程大学电子与信息工程学院,江苏 南京 210044
  • 收稿日期:2011-12-05 修回日期:1900-01-01 出版日期:2012-04-16 发布日期:2012-04-16

Design and Realization of DC Motor Speed Regulation System Based onMCU in C Language

ZHAO Yuan-dong1,2, FANG Yuan2, LIANG Lu-yang2   

  1. 1. Jiangsu Technology and Engineering Center of Meteorological Sensor Network,Nanjing University of Information Science & Technology, Nanjing 210044, China; 2. Electronic and Information Engineering College,Nanjing University of Information Science & Technology, Nanjing 210044, China
  • Received:2011-12-05 Revised:1900-01-01 Online:2012-04-16 Published:2012-04-16

摘要: 阐述基于STC-51单片机产生PWM信号的途径,介绍L298N控制直流电机的原理,给出系统的软、硬件组成,并讨论一种采用C语言编程的直流电机控制程序。运行试验表明,该速度控制系统简单稳定,满足直流电机的调速要求。

关键词: L298N, C语言, 直流电机, PWM

Abstract: This paper describes the functions of PWM signal based on STC-51 single chip, introduces the theory of L298N to control DC motor. The software and hardware of the system are given and DC control motor programs developed by C language are discussed. Experiments explain that the system works stably and credibly, meets the demand of DC motor.

Key words: L298N, C language, DC motor, PWM